
/**
 * 1. 物品的的种类配置文档
 * 2. 地图配置ts文档
 */

export type ItemConfigType = {
    id: number,
    name: string,
    iconName: string
}


export const itemConfig: ItemConfigType[] = [
    { id: 1, name: 'bed', iconName: "assets/item/bed.png" },
    { id: 2, name: 'blackchairA', iconName: "assets/item/blackchairA.png" },
    { id: 3, name: 'blackchairB', iconName: "assets/item/blackchairB.png" },
    { id: 4, name: 'lian_ce', iconName: "assets/item/lian_ce.png" },
    { id: 5, name: 'lian', iconName: "assets/item/lian.png" },
    { id: 6, name: 'bin', iconName: "assets/item/bin.png" },
    { id: 7, name: 'cat', iconName: "assets/item/cat.png" },

    { id: 8, name: 'chairE', iconName: "assets/item/chairE.png" },
    { id: 9, name: 'gate', iconName: "assets/item/gate.png" },

    { id: 10, name: 'chairA', iconName: "assets/item/chairA.png" },
    { id: 11, name: 'chairB', iconName: "assets/item/chairB.png" },
    { id: 12, name: 'chairC', iconName: "assets/item/chairC.png" },
    { id: 13, name: 'chairD', iconName: "assets/item/chairD.png" },
    { id: 14, name: 'chaji', iconName: "assets/item/chaji.png" },
    { id: 15, name: 'desk_datingA', iconName: "assets/item/desk_datingA.png" },
    { id: 16, name: 'desk_datingB', iconName: "assets/item/desk_datingB.png" },
    { id: 17, name: 'desk_datingC', iconName: "assets/item/desk_datingC.png" },
    { id: 18, name: 'desk_office', iconName: "assets/item/desk_office.png" },
    { id: 19, name: 'desk_zhenshi', iconName: "assets/item/desk_zhenshi.png" },
    { id: 20, name: 'knife', iconName: "assets/item/knife.png" },
    { id: 21, name: 'dialog', iconName: "assets/item/dialog.png" },
    { id: 22, name: 'ditan', iconName: "assets/item/ditan.png" },
    { id: 23, name: 'door_ward', iconName: "assets/item/door_ward.png" },
    { id: 24, name: 'label', iconName: "assets/item/label.png" },
    { id: 25, name: 'vision', iconName: "assets/item/vision.png" },
    { id: 26, name: 'jiaoyinA1', iconName: "assets/item/jiaoyinA1.png" },
    { id: 27, name: 'guancai', iconName: "assets/item/guancai.png" },
    { id: 28, name: 'guizi_taipingjian', iconName: "assets/item/guizi_taipingjian.png" },
    { id: 29, name: 'door', iconName: "assets/item/door.png" },
    { id: 30, name: 'matong', iconName: "assets/item/matong.png" },
    { id: 31, name: 'screen', iconName: "assets/item/screen.png" },
    { id: 32, name: 'shugui', iconName: "assets/item/shugui.png" },
    { id: 33, name: 'shuichi_F', iconName: "assets/item/shuichi_F.png" },
    { id: 34, name: 'shuichi', iconName: "assets/item/shuichi.png" },
    { id: 35, name: 'shuye', iconName: "assets/item/shuye.png" },
    { id: 36, name: 'sofaA', iconName: "assets/item/sofaA.png" },
    { id: 37, name: 'sofaB', iconName: "assets/item/sofaB.png" },
    { id: 38, name: 'tree', iconName: "assets/item/tree.png" },
    { id: 39, name: 'window', iconName: "assets/item/window.png" },
    { id: 40, name: 'xiaobian', iconName: "assets/item/xiaobian.png" },
    { id: 41, name: 'yijia', iconName: "assets/item/yijia.png" },
    { id: 42, name: 'yugang', iconName: "assets/item/yugang.png" },
    { id: 43, name: 'stair_up', iconName: "assets/item/stair_up.png" },
    { id: 44, name: 'stair_down', iconName: "assets/item/stair_down.png" },
    { id: 45, name: 'fengziA', iconName: "assets/item/fengziA.png" },
    { id: 46, name: 'paper', iconName: "assets/item/paper.png" },
    { id: 47, name: 'guizi', iconName: "assets/item/guizi.png" },
    { id: 48, name: 'gateWall', iconName: "assets/item/gateWall.png" },
    { id: 49, name: 'zhalan_l', iconName: "assets/item/zhalan_l.png" },
    { id: 50, name: 'zhalan_r', iconName: "assets/item/zhalan_r.png" },
    { id: 51, name: 'gateDoor', iconName: "assets/item/gateDoor.png" },
    { id: 52, name: 'blood', iconName: "assets/item/blood.png" },
    { id: 53, name: 'fengziB', iconName: "assets/item/fengziB.png" },
    { id: 54, name: 'fengziC', iconName: "assets/item/fengziC.png" },
    { id: 55, name: 'jiaoyinB1', iconName: "assets/item/jiaoyinB1.png" },
    { id: 56, name: 'jiaoyinA2', iconName: "assets/item/jiaoyinA2.png" },
    { id: 57, name: 'jiaoyinA3', iconName: "assets/item/jiaoyinA3.png" },
    { id: 58, name: 'jiaoyinB2', iconName: "assets/item/jiaoyinB2.png" },
]

export const tilemapTest1: number[][] = [
    [3, 3, 3, 3],
    [5, 0, 0, 4],
    [5, 0, 0, 4],
    [3, 3, 3, 3]
]

export const tilemapTest2: number[][] = [
    [0, 0, 0],
    [1, 0, 1]
]

export type DoorConfigType = {
    uid: string,
    x: number,
    y: number
}


export const doorXY:DoorConfigType[] = [
    {uid:"door_ward1",x:198.4,y:128},
    {uid:"door1",x:396.8,y:128},
    {uid:"door2",x:697.6,y:128},
    {uid:"door_ward2",x:921.6,y:128},
    {uid:"door3",x:499.2,y:128},
    {uid:"door_ward3",x:896,y:128},

]